Item Property (Recipients Collection)
The Item
property returns a single Recipient object from the collection. Read-only.
Syntax
objRecipColl.Item(index)
objRecipCol
Required.
Specifies the Recipients collection object.
index
A long
integer that ranges from 1 to objRecipColl.Count, or a string
that specifies the name of the object.
Data Type
Object
Remarks
The Item
property works like an accessor property for small collections.
The Item
property is the default property of a Recipients collection, meaning that
Recipients(index) is syntactically equivalent to Recipients.Item(index)
in Visual Basic code.
Example
' list all
recipient names in the collection
strRecips
= "" ' initialize string
Set
objRecipsColl = objOriginalMsg.Recipients
Count =
objRecipsColl.Count
For i = 1
To Count Step 1
Set
objOneRecip = objRecipsColl.Item(i)
strRecips = strRecips & objOneRecip.Name & "; "
Next i
MsgBox
"Message recipients: " & strRecips
See Also
Count Property (Recipients Collection)